<?php
namespace Admin\Controller;
use Think\Controller;
class BaseController extends Controller {
	  public function __construct(){
        parent::__construct();  //继承Controller   其他控制器继承BaseController
        $this->verdictLogin(); //调用verdictLogin判断用户是否登录
       }
      public function verdictLogin(){
          $user=session("logIn");
          if(empty($user)){
              $this->error("账户未登录或超时!!!",U('Login/index'));
          }
       }
}
?>